const state = {
	chamberObj:{},//当前进入的商会
	share_id: '', // 分享人ID
	currentAddr: {
		name: '贵阳市', //
		id: 35368,
		type: 'city',
		isShow: false, // 是否显示
	}, // 当前城市
	version: '', //当前版本
	myCompany: {},
	serviceType: [],
	cardObj: { // 名片 个人信息 企业简介 产品服务 供需发布
		individual: {
			content: '',
			img: [],
			is_val: false // 是否有值
		}, // 个人信息
		enterprise: {
			content: '',
			img: [],
			is_val: false // 是否有值
		}, // 企业简介
		products: {
			content: '',
			img: [],
			is_val: false // 是否有值
		}, // 产品服务
		demand: {
			content: '',
			gainDesc: '',
			img: [],
			is_val: false // 是否有值
		}, // 供需发布
	},
	cardDetail: {}, //名片详情数据
	customMsg: {
		tag: '',
		num: 0
	}, //底部导航栏通知消息
	// 名片处理相关详情数据
	cardProcessing: {
		position: {}
	},
	navigation:{}, // 平台底部导航栏数据
	mer_id: '', // 子商户时 商户ID
	sonShop: false, // 是否是子商城
	// 子商城自定义tabber
	subNewData: {
		"name": "pageFoot",
		"setUp": {
			"tabVal": "0"
		},
		"status": {
			"title": "是否自定义",
			"name": "status",
			"status": true
		},
		"txtColor": {
			"title": "文字颜色",
			"name": "txtColor",
			"default": [{
				"item": "%23282828"
			}],
			"color": [{
				"item": "rgba(153, 153, 153, 1)"
			}]
		},
		"activeTxtColor": {
			"title": "选中文字颜色",
			"name": "txtColor",
			"default": [{
				"item": "%23F62C2C"
			}],
			"color": [{
				"item": "rgba(0, 0, 158, 1)"
			}]
		},
		"bgColor": {
			"title": "背景颜色",
			"name": "bgColor",
			"default": [{
				"item": "%23fff"
			}],
			"color": [{
				"item": "%23fff"
			}],
			"isFoot": true
		},
		"menuList": [{
				"imgList": ["https://yjgs.jsonbug.com/def/3c512202410250944544011.png",
					"https://yjgs.jsonbug.com/def/9993b20241025100226608.png"
				],
				"name": "首页",
				"link": "/pages/extend/subShop/index"
			},
			{
				"imgList": ["https://yjgs.jsonbug.com/def/601e1202410170959209122.png",
					"https://yjgs.jsonbug.com/def/cc179202410170959205424.png"
				],
				"name": "分类",
				"link": "/pages/extend/subShop/cate"
			},
			{
				"imgList": ["https://yjgs.jsonbug.com/def/d79c7202410241719394789.png",
					"https://yjgs.jsonbug.com/def/11b1a202410241719397921.png"
				],
				"name": "购物车",
				"link": "/pages/extend/subShop/cart"
			},
			{
				"imgList": ["https://yjgs.jsonbug.com/def/5a333202410250959075239.png",
					"https://yjgs.jsonbug.com/def/6df64202410170959188793.png"
				],
				"name": "我的",
				"link": "/pages/extend/subShop/my"
			}
		],
		"id": "idundefined"
	},
};

const mutations = {
	SET_ChamberObj(state, val){
		state.chamberObj = val
	},
	SET_Navigation(state, val){
		state.navigation = val
	},
	SET_merId(state, val) {
		state.mer_id = val
	},
	SET_sonShop(state, val) {
		state.sonShop = val
	},
	SET_currentAddr(state, val) {
		state.currentAddr = val;
	},
	SET_shareid(state, val) {
		state.share_id = val;
	},
	SET_version(state, val) {
		state.version = val;
	},
	SET_MyCompany(state, val) {
		state.myCompany = val;
	},
	SET_ServiceType(state, val) {
		state.serviceType = val;
	},
	SET_CardObj(state, val) {
		state.cardObj = val;
	},
	SET_CardDetail(state, val) {
		state.cardDetail = val;
	},
	SET_CustomMsg(state, val) {
		state.customMsg = val;
	},
	SET_CardProcessing(state, val) {
		state.cardProcessing = val;
	},
};

export default {
	state,
	mutations,
};